//
//  Status.swift
//  知乎日报Demo
//
//  Created by Ann on 2017/10/17.
//  Copyright © 2017年 Ann. All rights reserved.
//

import UIKit
//2.3 Status 每条新闻的必要信息模型
class Status: NSObject {

    
    /// 列表缩略图, 可能没有
    var images:[String]?
    ///顶部高清一张图
    var image:String?
    /// 标题
    var title:String?
    
    /// 类型,作用未知
    var type: Int = 0
    
    /// 新闻ID
    var id:Int = 0
     /// 多图的标志
    var multipic:Bool = false
    
    /// 是否已读的标志
    var alreadyRead = false
    
    init(dict:[String:AnyObject]) {
        
        super.init()
        
        setValuesForKeys(dict)
        
    }
    override func setValue(_ value: Any?, forUndefinedKey key: String) {
        
    }
    
    override var description: String{
        
        let keys = ["image","images","title","type","id","multipic","alreadyRead"]
        return dictionaryWithValues(forKeys: keys).description
        
    }
    
    

}
